import request from '@/utils/request'

// 取水户用水计划管理-列表查询
const waterIntakePlanManageList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/getWaterUsersPlanManageList',
    method: 'post',
    data: params
  })
}

// 计划管理-上方列表查询
const planManagementList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/getPlanManagementList',
    method: 'post',
    data: params
  })
}

// 取水户用水计划管理-新增
const addPlanManagement = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/addWaterUsersPlanManage',
    method: 'post',
    data: params
  })
}

// 取水户用水计划管理-修改
const editPlanManagement = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/updWaterUsersPlanManage',
    method: 'post',
    data: params
  })
}

// 取水户用水计划管理列表-导出
const exportPlanManagement = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/exportWaterUsersPlanManage',
    method: 'post',
    data: params
  })
}

// 取水户用水计划管理列表-导入
const importPlanManagement = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/excelWaterUsersPlanManage',
    method: 'post',
    data: params
  })
}

// 下载模板
const downloadTemplate = function (params = {}) {
  return request({
    url: '/zy-api/api/waterUsersPlan/dowWaterUsersPlanManage',
    method: 'post',
    data: params
  })
}

export {
  waterIntakePlanManageList,
  planManagementList,
  addPlanManagement,
  editPlanManagement,
  exportPlanManagement,
  importPlanManagement,
  downloadTemplate
}